package com.clstu.houserent.house;

public class House {
    private int id;
    private String renter;
    private String phone;
    private String add;
    private double price;
    private String state;

    public House(int id, String renter, String phone, String add, double price, String state) {
        this.id = id;
        this.renter = renter;
        this.phone = phone;
        this.add = add;
        this.price = price;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRenter() {
        return renter;
    }

    public void setRenter(String renter) {
        this.renter = renter;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAdd() {
        return add;
    }

    public void setAdd(String add) {
        this.add = add;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return   id + "\t   " +
                 renter + "\t" +
                 phone + "\t" +
                 add + "\t" +
                 price +"\t"+
                 state + "\t" ;
    }
}
